﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Order.aspx.cs"  EnableViewState="false"  Inherits="Card.Web.Member.Order" %>

<%@ Import Namespace="Card.Common" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Src="Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="../Controls/Footer.ascx" TagName="Footer" TagPrefix="uc1" %>
<%@ Register Src="Menu.ascx" TagName="Menu" TagPrefix="uc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>会员中心_<%=SiteName %></title>
    <link href="../css/layout.css" type="text/css" rel="Stylesheet" />
    <link href="../css/member.css" type="text/css" rel="Stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <uc1:Header ID="Header1" runat="server"></uc1:Header>
    <div class="content">
        <uc1:Menu ID="Menu1" runat="server"></uc1:Menu>
        <div class="right">
            <div class="top_info clear-fix">
                <h2>
                    我的订单</h2>
            </div>
            <asp:Repeater ID="rptList" runat="server">
                <HeaderTemplate>
                    <table class="TB">
                        <tr class="TB_Header">
                            <td>
                                订单号
                            </td>
                            <td>
                                收货人
                            </td>
                            <td>
                                电话
                            </td>
                            <td>
                                金额
                            </td>
                            <td>
                                订单状态
                            </td>
                            <td>
                                订单提交时间
                            </td>
                            <td>
                                操作
                            </td>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr class="TB_Item">
                        <td align="center">
                            <%# Eval("ORDER_ID") %>
                        </td>
                        <td align="center">
                            <%# Eval("RECEIVER")%>
                        </td>
                        <td>
                            <%# Eval("PHONE")%>
                        </td>
                        <td align="center">
                            <%# Eval("TOTAL_MONEY")%>元
                        </td>
                        <td align="center">
                            <%# CardWebUtility.GetOrderStatusDesc(Eval("ORDER_STATUS_CODE").ToString())%>
                        </td>
                        <td align="center">
                            <%# DateTime.Parse(Eval("SUBMIT_DATE").ToString()).ToString("yyyy-MM-dd HH:mm")%>
                        </td>
                        <td style="padding-left:10px;">
                            <asp:LinkButton ID="lbtnDetail" runat="server" CommandName="DETAIL" CommandArgument='<%# Eval("ORDER_ID") %>' Text="订单详情"></asp:LinkButton> 
                            <asp:LinkButton ID="lbtnPay" Visible="false" runat="server" CommandName="PAY" CommandArgument='<%# Eval("ORDER_ID") %>' Text="付款"></asp:LinkButton>  
                            <asp:LinkButton ID="lbtnDelete"  Visible="false" runat="server" CommandName="DELETE" CommandArgument='<%# Eval("ORDER_ID") %>' Text="删除"></asp:LinkButton>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
            <div style="text-align: right;">
                <baf:UrlPager ID="pager" CssClass="pagination" runat="server" PageSize="30" />
            </div>
        </div>
    </div>
    <uc1:Footer ID="Footer1" runat="server" />
    </form>
</body>
</html>
